@extends('layouts.web')

@section('title', '网站目录_网站分类目录_'.env('APP_NAME').'_我们只推荐好网站')
@section('keywords', '网站目录,免费网站目录,分类目录,网站分类目录')
@section('description', env('APP_NAME').'网站目录是全人工编辑的开放式网站分类目录，收录国内外、各行业优秀网站，免费网站目录,网站分类目录, 网站提交入口。旨在为用户提供优秀网站目录检索、网站推广服务。')

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            @inject('nav_area', 'App\Models\Area')
            @if($nav_area)
            <div class="layui-col-md12 layui-hide-xs">
                <div class="layui-card">
                    <div class="layui-card-body index-areas">
                        <ul>
                            @foreach($nav_area->get() as $v)
                                <li>
                                    <a href="{{ url('/area/'.$v->name) }}/" title="{{ $v->name }}" target="_blank">
                                        <img src="{{ hostStr('city/'.$v->id) }}.png" alt="{{ $v->name }}" class="areas-image">
                                        <p class="areas-content">{{ $v->name }}</p>
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
            @endif
            @foreach($col as $v)
                <div class="layui-col-md6">
                    <div class="layui-card clearfix">
                        <div class="layui-card-header">
                            <a href="{{ url('/site/'.$v->id) }}/" title="{{ $v->title }}">{{ $v->title }}</a>
                            @if($v->indexChildren($v->id))
                                <ul>
                                    @foreach($v->indexChildren($v->id) as $vv)
                                        <li>
                                            <a href="{{ url('/site/'.$vv->id.'/son/'.$v->id) }}/">{{ $vv->title }}</a>
                                        </li>
                                    @endforeach
                                </ul>
                            @endif
                        </div>
                        @if($v->indexSite($v->id))
                            <div class="layui-card-body site-list-body">
                                <ul class="index-site-list index-site-list-min">
                                    @foreach($v->indexSite($v->id) as $vv)
                                        <li>
                                            <a href="{{ url('/siteinfo-'.$vv->id.'.html') }}" title="{{ $vv->name }}">
                                                {{ str_limit($vv->name,10) }}
                                            </a>
                                        </li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
                    </div>
                </div>
            @endforeach
        </div>
    </div>
@endsection
